//
//  Firstview.m
//  QQ inteface
//
//  Created by dllo on 16/6/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Firstview.h"

@implementation Firstview

-(instancetype)initWithFrame:(CGRect)frame withImage:(NSString*)image withText:(NSString*)text{
    self = [super initWithFrame:frame];
    if(self){
        UIImageView  *imageView = [[UIImageView alloc]initWithImage:image];
        imageView.frame = CGRectMake(5, 5, CGRectGetWidth(self.bounds)/4, CGRectGetHeight(self.bounds));
        [self addSubview:imageView];
        [imageView release];
        UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetWidth(imageView.bounds) + 20, 20,  CGRectGetWidth(self.bounds) / 3 * 2,CGRectGetHeight(self.bounds) - 40)];
        label.text = text;
        label.font = [UIFont systemFontOfSize:50];
        [self addSubview:label];
        
        [label release];
        
        
        
        
    }
    return self;
}

   
    
    
    
    
    
    
    

    
    
    
    

@end
